const express = require('express');
const router = express.Router();
const homeController = require('../controllers/home');

/**
 * @route GET /api/home/recommend
 * @desc 获取个性化推荐资源
 * @access Public
 */
router.get('/recommend', homeController.getRecommendations);

/**
 * @route GET /api/home/stats
 * @desc 获取用户资源统计数据
 * @access Public
 */
router.get('/stats', homeController.getUserStats);

module.exports = router;